package GUI;

import javax.swing.*;
import java.awt.*;

/**
 * This class creates instance of ViewRequestGui 	
 * to display when needed
 * @author Aviat
 *
 */
public class ViewRequestGui extends JPanel {
	
	private static final long serialVersionUID = 1L;
	private JButton btnSubmit;
	private JButton btnCansel;
	private JComboBox reqNum;
	
	/**
	 * the constructor that initialize the ViewRequestGui
	 */
	public ViewRequestGui() {
		setLayout(null);
		
		JLabel lblNewJgoodiesTitle =new JLabel("View request ");
		lblNewJgoodiesTitle.setForeground(Color.BLUE);
		lblNewJgoodiesTitle.setFont(new Font("Arial", Font.BOLD, 17));
		lblNewJgoodiesTitle.setBounds(157, 41, 119, 30);
		add(lblNewJgoodiesTitle);
		
		JLabel lblEnterRequestNumber = new JLabel("Choose request number: ");
		lblEnterRequestNumber.setFont(new Font("Arial", Font.BOLD, 12));
		lblEnterRequestNumber.setBounds(8, 114, 177, 21);
		add(lblEnterRequestNumber);
		
		JButton btnSubmit = new JButton("Submit");
		btnSubmit.setFont(new Font("Tahoma", Font.BOLD, 13));
		btnSubmit.setBounds(299, 256, 124, 33);
		add(btnSubmit);
		
		JButton btnCansel = new JButton("cancel");
		btnCansel.setFont(new Font("Tahoma", Font.BOLD, 13));
		btnCansel.setBounds(10, 256, 124, 33);
		add(btnCansel);
		
		reqNum = new JComboBox();
		reqNum.setBounds(173, 110, 156, 30);
		add(reqNum);
	}
	
	/**
	 * 
	 * @return the submit button
	 */
	public JButton getbtnSubmit(){
		return btnSubmit;
	}
	/**
	 * 
	 * @return the cancel button
	 */
	public JButton getBtnCansel() {
		return btnCansel;
	}
	/**
	 * 
	 * @return JComboBox with the request numbers
	 */
	public JComboBox getReqNum(){
		return reqNum;
	}
	/**
	 * 
	 * @param btnCansel to set the cancel button
	 */
	public void setBtnCansel(JButton btnCansel) {
		this.btnCansel = btnCansel;
	}
	/***
	 * 
	 * @param btnSubmit to set the submit button
	 */
	public void setBtnSubmit(JButton btnSubmit) {
		this.btnSubmit = btnSubmit;
	}
}
